#include "luaResources.h"

LuaResources& LuaResources::getLuaResources()
{
  static LuaResources lua;
  return lua;
}

LuaResources::LuaResources()
{
  QStringList componentFiles("lua/components.lua");
  componentFiles << "userdata/components.lua";
  components = Component::getComponents(componentFiles);

  QStringList graphicsFiles("lua/graphics.lua");
  graphicsFiles << "userdata/graphics.lua";
  graphics = Graphics::getGraphics(graphicsFiles);
}
